Previous Book Contents Book Index Next

Inside Macintosh: Open Transport /
Chapter 16 - Serial Endpoint Providers / Serial Endpoint Providers Reference
Serial-Specific Commands


I_SetSerialDTR

This command sets the DTR signal on the serial port. Use the constant kOTSerialSetDTROff to turn the DTR signal off, and kOTSerialSetDTROn to turn the DTR signal on. The following line of code turns DTR on:

OTIoctl(theSerialEndpoint, I_SetSerialDTR, kOTSerialSetDTROn);
Asserting the DTR signal is equivalent to using a serial driver control call with a csCode value of 1,7 and negating the DTR signal is equivalent to using a csCode value of 18.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 AUG 1996